from selenium import webdriver
from time import sleep

driver = webdriver.Firefox()
driver.maximize_window()
driver.get('https://www.jd.com')
# 滚动到页面底部, 通过执行一段js脚本实现
js_script = 'window.scrollTo(0, 10000)'
# 执行js脚本
driver.execute_script(js_script)

sleep(3)
driver.quit()